﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace Arena_Gangrena
{
    class c_Teclado
    {
        public int pos_x, pos_y;

        public void v_teclado(KeyboardState tecla)
        {
            if (tecla.IsKeyDown(Keys.Left))
            {
                pos_x--;
            }

            if (tecla.IsKeyDown(Keys.Right))
            {
                pos_x++;
            }
            if (tecla.IsKeyDown(Keys.Up))
            {
                pos_y++;
            }
            if (tecla.IsKeyDown(Keys.Down))
            {
                pos_y--;
            }
           
        }
    }
}
